package ru.yermak.bookkeeping.ui;

import javax.swing.*;
import java.awt.Component;

/**
 * User: harrier
 * Date: Sep 9, 2008
 */
public class MockModalForm implements ModalForm {
    private boolean show;
    private Component parentComponent;
    private Object form;
    private String title;

    public MockModalForm(boolean show) {
        this.show = show;
    }

    public boolean show(JComponent form) {
        this.parentComponent = parentComponent;
        this.form = form;
        this.title = title;
        return show;
    }

    @Override
    public boolean confirm(JComponent form) {
        return false;
    }

    public Component getParentComponent() {
        return parentComponent;
    }

    public Object getForm() {
        return form;
    }

    public String getTitle() {
        return title;
    }
}
